projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b366ea8
)
gsk: Handle GL textures
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 17 Jan 2018 05:52:15 +0000
(
00:52
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 17 Jan 2018 16:57:25 +0000
(11:57 -0500)
These textures already have a GL texture in them,
no need to create a new one.
gsk/gl/gskgldriver.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskgldriver.c
b/gsk/gl/gskgldriver.c
index 3d858e763dc6b5d8d9a2592c75e3879b2a38f9b9..6d1c417b7706b91f7abcbc74c61b034bbbe912ff 100644
(file)
--- a/
gsk/gl/gskgldriver.c
+++ b/
gsk/gl/gskgldriver.c
@@
-370,6
+370,9
@@
gsk_gl_driver_get_texture_for_texture (GskGLDriver *driver,
Texture *t;
cairo_surface_t *surface;
+ if (GDK_IS_GL_TEXTURE (texture))
+ return gdk_gl_texture_get_id (GDK_GL_TEXTURE (texture));
+
t = gdk_texture_get_render_data (texture, driver);
if (t)